{% extends 'trash.html' %}
{% block active_pages %}class="active"{% endblock %}
{% block trash %}
{% if pages %}
<table class="table table-bordered table-striped table-condensed table-hover">
	<tr>
		<th>Title</th>
		<th>Creator</th>
		<th style="text-align: center;">Trash date</th>
		<th style="text-align: center;">Restore</th>
		<th style="text-align: center;">Delete</th>
	</tr>
	{% for page in pages %}
	<tr>
		<td><a href="{{ page.get_absolute_url }}">{{ page.title }}</a></td>				
		<td><a href="{% url 'auth.views.view_user' username=page.creator %}">{{ page.creator.first_name }} {{ page.creator.last_name }}</a></td>
		<td>{{ page.modified }}</td>
		<td style="text-align: center;"><a href="{% url 'trash.views.restore_page' page_id=page.id %}"><i class="icon-repeat"></i></a></td>
		<td style="text-align: center;"><a href="{% url 'trash.views.delete_page' page_id=page.id %}"><i class="icon-remove"></i></a></td>					
	</tr>
	{% endfor %}
</table>
 {% else %}
<p>There are no trashed pages.</p>
{% endif %}
{% endblock %}